@var1: #2c3e50;
@var2: #ffffff;
@var3: #e0e0e0;
@var4: #e4e7ed;
@var5: #fafafa;
@var6: #f4f6fc;
@var7: #409eff;
@var8: #333333;
@var9: #999999;
@var10: #cccccc;
@var11: #909399;
@var12: #ecf5ff;
@var13: #ff4d4f;
@var14: #e6a23c;
@var15: #fdf6ec;
@var16: #e1e1e1;
@var17: #eceffe;
@fontSize: 14px;

html,
body {
    margin: 0;
}

.fc-style {
    height: calc(100vh);
    width: 100vw;

    *,
    :after,
    :before {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .fc-title {
        padding: 11px;
        border-bottom: 1px solid @var3;
        font-size: 16px;
        font-weight: bold;
    }

    .fc-container {
        background: @var2;
        height: 100%;

        .fc-header {
            background: @var2;
            padding: 0;
            border-bottom: 1px solid @var3;
            height: 50px;
            line-height: 50px;
            display: flex;
            justify-content: space-between;
        }

        .fc-main {
            position: relative;

            >.ant-layout {
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                right: 0;
            }

            .iconfont {
                font-size: 20px;
                line-height: 50px;
            }

            .center-container {
                border-left: 1px solid @var3;
                border-right: 1px solid @var3;

                .widget-empty {
                    background-position: 50%;
                }

                .ant-layout-content {
                    // height: calc(100% - 45px);
                    padding: 0;
                    position: relative;
                    background: @var5;
                }
            }

            .widget-config-container {
                position: relative;

                .ant-layout-header {
                    border-bottom: 2px solid @var4;
                    padding: 0 5px;
                    height: 45px;
                    line-height: 45px;
                    background-color: @var2;
                }

                .config-tab {
                    height: 41px;
                    line-height: 41px;
                    display: inline-block;
                    width: 145px;
                    text-align: center;
                    font-size: @fontSize;
                    font-weight: 500;
                    position: relative;
                    cursor: pointer;

                    &.active {
                        border-bottom: 2px solid @var7;
                    }
                }

                .config-content {
                    padding: 10px 15px;
                    background: @var2;
                    overflow: auto;

                    // min-height: calc(100vh - 300px);
                    // max-height: calc(100vh - 300px);
                    .ant-form-item-label {
                        font-weight: bold;
                    }

                    .ant-form-item,
                    h4 {
                        padding-bottom: 10px;
                    }

                    .ant-form-item {
                        margin: 0 0 10px;
                    }

                    .label {
                        font-weight: 500;
                        margin: 0 5px;

                        &:first-child {
                            margin-left: 0;
                        }
                    }

                    .drag-item {
                        font-size: 28px;
                        cursor: move;
                        position: relative;
                        top: 5px;
                        color: @var10;
                        left: -3px;
                    }

                    .up-Delete {
                        color: @var13;
                        padding-left: 10px;
                    }

                    .form-item-der-row {
                        flex-direction: row;

                        .ant-form-item-label {
                            position: relative;
                            top: 5px;
                            margin-right: 10px;
                        }
                    }

                    .ant-checkbox-wrapper {
                        margin: 8px 8px 0 0;
                    }

                    .group-flex {
                        .ant-checkbox-wrapper {
                            display: flex;
                        }
                    }

                    .form-item-label-col-title {
                        margin-top: 10px;
                    }

                    .redSpan {
                        color: @var13;
                        font-size: 25px;
                        position: relative;
                        top: 8px;
                        padding-right: 5px;
                    }

                    .form-item-checkbox-vertical {
                        .ant-form-item-control-input-content {
                            display: grid;
                        }

                        .form-item-label-len {
                            margin-top: 10px;

                            .ant-input {
                                width: 80px;
                            }
                        }
                    }

                    .draggable-option-title {
                        margin-top: 5px;
                        margin-bottom: 10px;
                    }

                    .draggable-option {
                        position: relative;

                        .ant-row {
                            margin-bottom: 10px;
                        }

                        .anticon-close-circle {
                            color: #f00;
                            position: absolute;
                            right: 20px;
                            top: -7px;
                            z-index: 1;
                            // right: 0px;
                            // top: -10px;
                        }

                        .drag-item {
                            line-height: 50px;
                        }

                        .draggable-option-list {
                            border: 1px solid @var10;
                            border-style: dashed;
                            padding: 12px 10px;

                            .draggable-option-item {
                                margin-bottom: 10px;

                                .draggable-option-item-label {
                                    display: inline-block;
                                    width: 70px;
                                }
                            }

                            .draggable-option-item-rule {
                                span {
                                    padding-right: 5px;
                                    margin-right: 15px;
                                }
                            }
                        }

                        .list-rule {
                            margin-bottom: 10px;
                        }

                    }
                }

                .ghost {
                    background: @var2;

                    // border: 1px dashed @var7;
                    &::after {
                        background: @var2;
                        display: block;
                        content: "";
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                    }
                }

                ul {
                    margin: 0;
                    padding: 0;
                }

                li.ghost {
                    list-style: none;
                    font-size: 0;
                    display: block;
                    position: relative;
                }
            }
        }
    }

    .components {
        padding: 8px 0;
        width: 100%;
        height: 100%;

        .widget-cate {
            padding: 8px 12px;
            font-weight: bold;
        }

        ul {
            position: relative;
            overflow: hidden;
            padding: 0 10px 10px;
            margin: 0;
        }

        .form-edit-widget-label {
            display: block;
            width: 48%;
            line-height: 26px;
            position: relative;
            float: left;
            left: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 3% 1%;
            border: 1px solid @var3;

            &:hover {
                border: 1px dashed @var7;

                >a {
                    color: var(--ant-primary-color);
                }
            }

            >a {
                color: @var8;
                display: block;
                cursor: move;
                border: 1px solid @var6;

                span {
                    display: inline-block;
                    vertical-align: middle;
                    padding-left: 5px;
                }
            }
        }
    }
}